package com.hkts.naturalgas.curvesettings.service;

        import com.baomidou.mybatisplus.core.metadata.IPage;
        import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
        import com.baomidou.mybatisplus.extension.service.IService;
        import com.hkts.naturalgas.curvesettings.entity.CurveSettings;
        import com.hkts.naturalgas.curvesettings.entity.HktsPowerFailure;
        import com.hkts.naturalgas.dictionaries.entity.HktsEnvironmentProtectionDictionaries;
        import com.hkts.naturalgas.dictionaries.entity.HktsEnvironmentProtectionItem;

        import java.text.ParseException;
        import java.time.LocalDateTime;
        import java.util.List;
        import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yck
 * @since 2021-10-26
 */
public interface IHktsPowerFailureService extends IService<HktsPowerFailure> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param hktsPowerFailure
     * @return
     */
    IPage<HktsPowerFailure> selectPage(Page<HktsPowerFailure> page, HktsPowerFailure hktsPowerFailure);

    List<HktsPowerFailure> selectList(HktsPowerFailure hktsPowerFailure);

    Map<String, List<CurveSettings>> handlerPowerFailure(String powerFailure,
                             List<HktsEnvironmentProtectionDictionaries> hktsEnvironmentProtectionDictionaries,
                             Map<String, List<HktsEnvironmentProtectionItem>> itemMap,
                             Map<String, List<CurveSettings>> curveSettingMap,
                             LocalDateTime powerFailTime) throws ParseException;
}